cleaning up code, changing to float to reduce memory footprint
rearranged line of codes, chainging eclipse to intellij idea
adding first test