bug fixes
added step 1,2 of program flow in docs