adding source code for phase 1, this version is fully working. more features can be added tho

TODO: CRON