changed parse script to generate json
Implemented parser and gender split in role funcitons