Add argument checks

Add argument checks to a number of methods.