Added explicit debug support

Use -tags debug when building
Moved warnings to debug mode and improved introspection
Improved structure printing
Added basic parsing introspection
Removed redundant code
Simplified compiler optimisations