Altered coding style.
Added brush direction mode enum and settings property.