Add maven build file
Document new build procedure
Remove some dead code and move around a constant.