Added more help to the main page
removed extra state_handler
Broke out boolarraytoint function