Added documentation and checking for alive creeps