Fixed error messages and other bugs

- TODO: MODE -k crashes everything