added helper functions, moved analytic folder