bug-fix: fix transcription errors

- enforce consistency in style, doc, use of php functions with develop branch
- fix template errors