Added comments to actions, updated makefile and global.h to resolve compile errors with cleanup()'s new location.