added some messages and fixed a typo