fixed typo in composite
added missing javadocs
added missing javadocs
changed "\r\n" to system specific line separator