reorganized main routine and added pll so we can run at a faster bus speed