Re-factored tail function into tail.py
Re-wrote run.py to sample until a certain number of effective samples are achieved, resetting after each jump in max(log(L)).