cleaning up stk
adding debug flag all around the project
microtime tracking for flash procedure