fixed a few bugs

made the release build to turn in
added class for code analysis