imported into eclipse & formatted

to make it easier for me to use in other projects