basic scribble functionality working; many bugfixes