Revision 8
Added commenting
Added error handling
Added user simulation parameter selection