optimizing code, preventing RAM problems
minor readme adaption