Added safe handling of wrong parameters in methods #42