Add newlines.
Simplify palette class.
Modify comment.
Only load outside maps.
Remove duplicate code.