Setting libraries and basic environment