inherit style option (mentioned in #20)
Added .gitignore
Typeof fix for undefined check
Merged in branch #20