fix integer conversion warnings
fix VC++ char array problem
remove to-do items which are done