updated package meta data
cleaned up code and comments