Fixed end file error
Bug fix
Working out major messages error
Major fix