Fix Unix line endings.
Add addon support. Code cleanup.