Improved check if grounded so you can jump when standing on edges
Added air speed and ground speed variables
Clean up and added comments