Added a Constants class to store all constants.
Added implementation for template parser.
Tidied things up.
Working prototype!!!