Feature/type validation

Added functions to check that the correct datatype is used for params.