Add alu function cases, fix errors