Added clear line function and improved cell’s retrieval functions