Update Source.c

cleaned up some of the code