Added sf.clear() to main.cpp
Changed 1. to 1.0f in ns_inv