Project set up for intellij.
Code formated to my liking. (Sorry.)