Fixed bug when reading lines with one space in it
Moved and added clearCache() method