Encapsluated output format in print_msg
Added previous directory warping
Added help argument