more refactoring on parsedir, finalizing results and show_usage