added a docs target to the makefile. corrected the error calculation
almost done
added nice math to doxygen comments