Document now initializes with files

also has filepath as a private variable