Added autocov function and rearranged src files