LEMS API and simulator written in Common Lisp