Implemented gap buffer.
Implemented parse_cmd().
Minor formatting.