Improve example and implement parse errors