Fixed bug and implemented paste

#18 #19