clean up errors/warnings from MSVC
added cmake file
windows needs a getopt, from FSF via codeproject
readme
cmake