add eclipse files, move to src folder, fix IO