Update syntax and return types in README