removed unnecessary package attribute
added documentation for functions