refactored + added java docs, readme and batch files