Added a few basic math functions. Moved the test input file to a directory other than build.