added tutorial.html and made bunch of small fixes.