Refactored parser script to accept dir as argument
Maps!