FIX #391 Fixing all lintian errors and some warnings

See #391