Changed interval and timeout to type int (seconds), added javadoc.
Merge pull request #209 from maksimov/2014.05

Changed interval and timeout to type int (seconds), added javadoc.