Removed the fugly for-loops, increased interval and updated gitignore to ignor figures and generated pdf