Moved uselocale to a more reasonable location

Style fixes

Style fixes