Added <Object>.read class methods instead of passing a file object to the constructor