default gem file moved to resources
organization of files
Moving code to files
Fixed shutdown trap