added maven build script, reorganized modules