add default tick function to constructor arguments
update code style
Merge pull request #10 from maxogden/func-arg

add default tick function to constructor arguments