Added some documentation in Javadoc format