Fixed imports and changed vectors to arraylists

Cleaned all errors and warnings. Vector is deprecated, so changed it to
arraylist.