Added and integrated API error parser directive, updated header comments