misc refactoring. added some elevator movement helper functions.