Feature additions and fixes

- Added functionality for the -p option
- Preliminary support for indentation levels for 'here docs'
  from within loops etc.