Modify Less2: implemented all operations. Reformat code.