Added memory indecies, and fixed malloc()

Pointers of type void* do not appear to be valid return types in RobotC,
so I changed it to a char for now. It compiles correctly in RobotC.