Problem cleaning up the code

Can you try these?

moveCursor(1, 6);
moveCursor(1, 7); .. etc
void moveCursor(int row, int column){
  Serial.write(0xFE);    
  Serial.print((row-1)*16+column-1); 
}

I am referring to Arduino Playground - SparkFunSerLCD