change validation, added constructor in Commands, variable for filename