Fixed build, added maven dependencies, updated entities.