Improved DelayedAction and added PeriodicAction
Added license headers and improved some documentation