refactors Java sources to packages; adds clean to build directive