cleaned, add java docs at top