Restructured directories, added Java build