added more documentation and validations