Added namespace to grammar definition
Added namespaces to generated parser code
Cleaned up a little
Added php opening tag to generator output
Added imports