Added check for segment overflow and notes on it.
Added some initial docs.