add comment and fix indetation
Edge input format ready