Some range handling + a few bits of documentation