Update SFApp.cpp

cleaned a lot of stuff