solved theta +- issue; move from nb to files