Added some comments
Add I/O framework
read() function