Adding print function, title;
Fixing bugs;
