Important change:
* fix for conversion of leading spaces to tabs (did not work at start of document); copied from online version
This change may need to be migrated to trunk; possibly some refinement possible, but at least this works.
Other changes:
* fixes for notices
* cleanup for coding guidelines
* Unix line endings
* updates in comments and docblock