Initial, misguided revision
Working lhc
Removed debug output
Slight streamlining
Working (but not fully tested) CLI