Add exec() function
Comments indentation.
Add read support and improved error handling.