Fixed a bug that caused a crash in the compiler.
Tweaked some messages.