corrected things
added 3 levels; added comments
merged