Added TextFile Generation, Cleaned Code Up, Comented Important Parts and fixed a Bug with matrix generation