class functionality added
added pretty-printing functionality, changed imprecise to floats