moving main.js to different location
cleaning up stk
adding debug flag all around the project
microtime tracking for flash procedure