Added button functions, fixed history bug, and added NCalc to parse strings