cleaning up sample more and added license