add math functions
fix white space error, result printing