Fixed most of the functionality of the Parse function

Parse function is now mostly functioning, thorough testing still required,
but I feel comfortable moving on to the exec functionality now