fixed typo and added doc strings