Separated actions into files
Added a few stray prototypes