changed validation functionality + documentation
minor comment
minor comment