several fixes

Fix for "Gambiarra" and added the chosen library