Work on --get-metadata command

Includes:

 - Logging