Added More versatile hashing functions.

+ Added file hashing method.
+ Allow passing the desired hashing algorithm.