fixed error message
added code style setting from intellij community
reformatted
better code style + reformatted