diff --git a/.gitignore b/.gitignore
index fca352e..aa03912 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.idea
-out
\ No newline at end of file
+out
+target
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..f149371
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,66 @@
+
+
+ 4.0.0
+
+ dev.mateuszkowalczyk.ffm
+ dev.mateuszkowalczyk.ffm
+ FFM-Friend_Face_Matching
+ 1.0-SNAPSHOT
+
+
+ UTF-8
+ 5.5.2
+
+
+
+
+ org.openjfx
+ javafx
+ 11
+ pom
+
+
+ org.openjfx
+ javafx-controls
+ 11
+
+
+ org.openjfx
+ javafx-fxml
+ 11
+
+
+ org.junit.jupiter
+ junit-jupiter
+ ${junit.jupiter.version}
+ test
+
+
+
+
+
+ maven-compiler-plugin
+ 3.8.1
+
+ 11
+ 11
+
+
+
+ maven-surefire-plugin
+ 2.22.2
+
+
+ org.openjfx
+ javafx-maven-plugin
+ 0.0.3
+
+ dev.mateuszkowalczyk.ffm.Main
+
+
+
+
+
+
\ No newline at end of file
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..d1def56
--- /dev/null
+++ b/readme.md
@@ -0,0 +1 @@
+--module-path PATH_TO_PROJECT/libs --add-modules javafx.controls,javafx.fxml
\ No newline at end of file
diff --git a/src/application/Main.java b/src/main/java/dev/mateuszkowalczyk/ffm/Main.java
similarity index 79%
rename from src/application/Main.java
rename to src/main/java/dev/mateuszkowalczyk/ffm/Main.java
index a893d51..bf85337 100644
--- a/src/application/Main.java
+++ b/src/main/java/dev/mateuszkowalczyk/ffm/Main.java
@@ -1,4 +1,4 @@
-package application;
+package dev.mateuszkowalczyk.ffm;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
@@ -12,8 +12,8 @@ public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{
- URL welcomePageUrl = ClassLoader.getSystemClassLoader().
- getResource("resource/welcomePage.fxml");
+ URL welcomePageUrl = getClass().getClassLoader().
+ getResource("welcomePage.fxml");
Parent welcomePage = FXMLLoader.load(welcomePageUrl);
primaryStage.setTitle("Friend Face Matcher");
diff --git a/src/application/controller/WelcomePageController.java b/src/main/java/dev/mateuszkowalczyk/ffm/controller/WelcomePageController.java
similarity index 84%
rename from src/application/controller/WelcomePageController.java
rename to src/main/java/dev/mateuszkowalczyk/ffm/controller/WelcomePageController.java
index 71a4b8c..bbf89e2 100644
--- a/src/application/controller/WelcomePageController.java
+++ b/src/main/java/dev/mateuszkowalczyk/ffm/controller/WelcomePageController.java
@@ -1,4 +1,4 @@
-package application.controller;
+package dev.mateuszkowalczyk.ffm.controller;
import javafx.fxml.FXML;
diff --git a/src/resource/welcomePage.fxml b/src/main/resources/welcomePage.fxml
similarity index 93%
rename from src/resource/welcomePage.fxml
rename to src/main/resources/welcomePage.fxml
index 5f72764..310c074 100644
--- a/src/resource/welcomePage.fxml
+++ b/src/main/resources/welcomePage.fxml
@@ -6,7 +6,7 @@
-
+