Fixed clipping issues, and added basic selection.