More documentation and fixed typos in tutorial