added copyright, fixed documentation