Update pom.xml to target javawriter 2.4.0
Use beginConstructor and endConstructor functions instead of method calls + Formatting issues.