Added silent mode option, added license to file, cosmetic changes.