Added javadocs. Did some minor refactoring. Updated README file