Added option -lm to link math libaray
Added color code
Improved format
Improved Code