Readded most recent code. Project is pretty much fully working