Changed variable types to be more saner. What was string and looked like an integer is now integer.
Updated readme to reflect recent changes to main script. Typos, example  updates.