code cleanup, memory-leak fix - BROKEN
serial fully functional, startup crashes arduino