Made bin executable
Fixed some stupid bugs