Added read function for binary

Also developed section to summarize the communication errors