code tidy up

Fixed indentation, fixed text overflow.