Added better documentation, removed unused line