add documentation and remove %i instances which are not compatible with 1.9.3 and backports
Merge pull request #6 from Sitch/compatibility_with_1.9.3

add documentation and remove %i instances for 1.9.3 compaitibility