updated Latex file
New method for calculating errors
updated analysis module