Adding autosize fix and some coding style extra cleanups
Merge pull request #37 from sk4zuzu/smooth-autosize-fix

Adding autosize fix and some coding style extra cleanups