- removed some console.log stuff
- Udpated openDoc method to use document type