fixed doc and added copyright headers