improvements and fixed spelling