Updating to working version. Need to really work on cleaning this up and getting it ready to fully implement as an API. So bad looking right now... The code is far from clean and organized, but it is functional and I am very tired.