basic alarm function 1

Structured the project files,
Modified all the java files for further convenience