Some docs added for Document class and some mistakes fixed