fixed issue with ordering resulting from ddply; re-added reshape2 package