fixed casesensitive query bug and changed return-type of signatures of the methods with array into ArrayList<type>...