remove bltrversion
Fix warnings and code optimisations