Added bound checks for move left/right.
Added missing documentation.