add gitignore
Added Visual Studio 2013 simulator project
replaced unsafe c functions with safe functions