Fixed some warning and made the project to be imported by Eclipse