Added full fuctionality for json metrics file and hosts file.
Kinda working for console output