changes from writing article

writing the article about this code highlited some things that were
problematic and unnecessary.  have removed them and replaced them with
new things that are problemetic and unnecessary :)