Added doc block to main subroutine