added BEEP and DEBUG ad preprocessor options... also made all the stuff work :)