fixed logging and userwarnings
changed recursion limit warnings for debug
Merge pull request #818 from Menerve/userwarnings_to_loggingwarning

Adjustments for userwarnings and logging WARNING