Applied standards to files.

@ekolker please review and merge.

TODO:
make event-driven. Currently does not emit data.
Get rid of chip select option in constructor function?