Added license header to source files. added brief program explanation in main.