Fixed spelling, formatted sample code