Fixed determination of the state of the 'CoM'. Fixed warnings in
init_paths. Updated print_plot and rmt.