fix minor analysis bug
added analysis for return codes and included resources
finished first prototype of triage