added stand alone mode to firmware and android libraries