Added right reference versions of expand methods.
Added move functionality.
Fix 0-byte error in input file.
Merge pull request #179 from simongog/optimize_expand

Expand methods work with right references now.