Documentation added to firmware and library