Cleaned code and added prototype function for audio timer