fix type and add comment
reformat source code with a proper java ide

also remove unneded imports