Fixed #48 -- code documented and clarifyied
Merge pull request #49 from karan/ticket_48

Fixed #48 -- code documented and clarifyied