Variable,expand: Comment code and improve implementation.
VariableFactory,createLinefeedVariable: Add factory method for ‘lf’ variable.