rename all .h files to .hpp

this is so my newfangled editor plugins will properly recognize
C++ code in headers
clean up var names to avoid confusion / scope issues
move #includes around. now only included where neeeded
add parametric equation graphs