Replaces tabs with spaces. Fixes #7.
Added the main class attribute. Fixes #6.