Coded stuff, added copyright notices