Made the required changes 

This should be `defaultDocument`, when there is no file provided.