Bugfix and code cleanup

- fix for string formatting
- format doc and script to max 80 chars
- change page.get/put to text assignment

Change-Id: Iae5a02ac7e83204eb7a8a468e086ac431a6e8572
Merge "Bugfix and code cleanup"