changing printf() to error() or log()
adding examples/obj directory, changing names of error and log functions to not interfere with functions in math.h