updated main.cpp in new firmware; currently fixing java serial and about to add more device classes