fixed strict errors

- also changed default from document to graph