lots of additions and bug fixes
working page creation