Added documentation for creating own restricted actions. Removed old code.