Cleaned up plugins file and added new message system.

also fixed missing eof newline.