added arithmetic operation handlers, also increased the allowed firmware size from 4K to 8K