added codes, started serial stuff