updated copyright text, deleted unused code