Fixed plot update. Brush. Refactored code. Internal vs external variables. Pointers.