* indentation tabs replaced by spaces.
* helper functions updated.