Updated docs + added error retrieval method