added comments and console.logs for testing
apparently working
added variabl hey to transition and moved all tests into testF
removed all console.logs but one
removed extra line breaks