removed example code, code clean-up and updated copyright notice