made script out of brainfook, added comments and fixed small bug