Fix newlines at eof, add analzyer support