added first stubs for diff

implemented helper methods for diff structs
completed status.c and status.lua
resolved error with flags
added some diff functions