many updates such as simplifying overall code and beginning blog entry in comments