Fix an error with type checking
Update readme