save_code

rewrite of end screen and enhancements