Fix formatting and warnings

Make whitespace and formatting consistent
Fix warnings
Enable support for eclipse project generation
Update wrapper to 2.1