improves script
creates analysis file
simple plan for analysis