fixing up ArrayList docs to use generics syntax
updating and improving the HashMap doc page