Added README
Better error checking and handling.