move code into separate files, remove old unused files, put logic into own module, put actions in right place
Update README