Updated all mathematical functions, got the interface working - stil need to work on decimal place