modified the way copy and paste works to avoid doing loops
added some more specs and fixed an issue with incomprehensible clipboard data