numerous minor, but important bug fixes.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@9141 3d254a34-79dc-0310-9e5f-be208747d8a0
minor fix.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@9142 3d254a34-79dc-0310-9e5f-be208747d8a0
another minor fix.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@9143 3d254a34-79dc-0310-9e5f-be208747d8a0