FIX #391 Fixing all lintian errors and some warnings