remove main method
added JavaDoc for last methods
added tests for last