More organized comments in Expand
Removed unused variable and added more comments