Fixed half-byte problem with lcd_write; changed limits on output loop