Fixed type error (sqrt returns double instead of float).
Removed "using namespace" stuff, fixed #includes and ordered them alphabetically.