Made the code nicer and made a doxyfile for Serial directory