Make class

Convert to class, add run script, use standard emacs indentation.