minor bugs

minor bugs and spelling errors