fixed bugs with block logic, added some new features like copy, started
with fixing resize.