Added doc comments and adjusted to the new sensor module
Added back the copyrights