Added tutorial and fixed print function