Added documentation
Added exit keyword at end