Creating Libraries from sketches?

Your Accel() function take at least 25.5 seconds to execute (255 times through the loop with a 100 millisecond delay each time). When it is done control will return to your loop() function.