Added optimizations, Converted project to VS2012 .Net 4.5