Added .hpp as text to .gitattributes
Moved existing command line parsing code into own .cpp file.