Fixed segment fault on read

Fixed segment fault error when reading a file, hopefully this time it
will gone.
Fixed minor displayed problems

Fixed most of the visual problems. Prepare to add colours to the
program.
Finish fixed problem

Fixed minor problems and revived some memory issue problem (clear used
memory). Adjust colour thought terminalr seem not working for now.
Backup before deleting