Added full support for multiple sensors. Added MIT licensing. Cleaned up
code.