Fixed some stuff. Reading from files is with bugs.
Revert "Fixed some stuff. Reading from files is with bugs."

This reverts commit 5724b84fb25e605b62da928c873b1854925a30e0.