step by step direction panel added

Step by step direction panel is added. Some refactoring to the JavaScript, it alot more readable now. I tested everything i could, and its working fine.