organized imports and copyright header
added debug logging and java doc