added lines.py. condensed likelihood to simple only.