Adding custom fields to JIRA and fixed a few bugs