Update API to be consistent with web audio api. Update README.