Bugfix & Comments
[FIXED] output nil bug
[ADDED] comments