Added support for word docs, bug fixes, fixed headers

Also initial support for pages