Use --libs only in setup.py if it works, refactor, add documentation