fixed write and ran javadocs-LGS