refactoring
handling some errors
commenting on Nori hash syntax