Changed default parameter checking and added some docs