finished main logic
added inspect Step and initializing functions