added write to disk option
maths.c framwork finished