renamed some stuff. Added some comments. Made another random copy of my existing code for some dumb reason.