Linux friendliness

Made the code more Linux friendly, fixed some Reddis bugs and removed
old useless files