added copyright to files
added more usage into states