updated algapi.c
added elevator.c