Updated documents and added outOfRange function