Add correct hash for library
Removed unused variable
Replaced some use of `~[T]` with `Vec<T>`