polished up the stable version: got rid of annoying warnings, moved some functions into private areas, simplified main and cleaned up code
polished up the stable version: got rid of annoying warnings, moved some functions into private areas, simplified main and cleaned up code