Made required mathematical functions and file line parser.