Implemented "output" action.
Replaced cat fork with a file_get_contents() call.
Fixed typo in read_state_file().
Implemented "kill" action.