Added sleep, as to prevent a huge resourse waste.
Fixed the bug in which Elements.txt could only be read in the IDE. Also, fixed the bug, where if Elements.txt could not be found it just waits