Refactoring and bug-fixing

Send keys to start-button, random algorithm optimization, methods name
refactor