Added constructors and methods along with javadoc documentation.