Turn most of the code into a module so it can be unit tested
Adding tests and fixing bugs and make it more developer-friendly