Fixed copywrite and cleaned up code.