added copyright
added basic functionality