fix bugs. add shutdown.
del resource.h
del rc file.
change these to text files.
add end line for resource.h file