converted to lib, started hacking on adding actions
got Actions compiling, will test later
got rid of all warnings