Refactored record population/document creation. Update README.