Added alternative methods to gets keys.
Added option to calculate the tree hash of files.
Updated documentation.