added comments and removed unneeded dependency