fixed some build issues, javadocs, etc.