Refactor LocoTerm

- Converted LocoTerm class and other methods using locoterm arguments as separate classes. 
- Documentation is not changed yet.
Should be rewritten.