Added documentation and fixed empty execution.