Renamed kwgs to kwargs (fixes #185)