Added Assert.checkArgs()

Assert.checkArgs() was likewise executed on all functions that needed
it.