added the openAll function and cleaned up comments a bit