Added more error handling. Updated documentation. Minor improvements