Fixed path bugs in generation.
Added script to run through maven.