Minor code improvements, added tutorial URL to documentation.