Now the print funvtionality is added
Last commit fixes #31 and fixes #24