Added translateStatus function and a few comments.