Raises a warning if unnecessary kwargs are supplied

@bryevdv I have implemented as per your diff in the comment in #646.

It seems to be working fine, but will require some tests to be added, as per your suggestion. Working on the same.
Please remove redundant characters from this line.