cleaned up some code
removed some unnecessary code
forgot to implement paste text