Fixed most of the issues I had with the code. Security still needs a lot of work. Modules are imported and code is written but commented out for finishing later. Todos are also placed.