Cleaned the examples and the src a bit, plus docs