Improved JavaDoc, added CheckStyle
Cleaning up code [fixed #11]