Fixed typo in segment. Updated comment formatting
Added example to README