Brushwidth and fixes

Brushwidth and height adjustable through gui
Some bugfixes