Add ActionMenu headers to make it easier to compile this project.
Better error handling.