Added deduce_type function.
Added deduce_deep function.
Added some initial documentation.