Refactoring: finished refactoring main module
Code refactor; added client side countdown