Almost everything works. Added JavaDoc

I still have to make gradle and JUnit tests... :(