readme update, error handling improvements, json now correctly parsed