Converted stuff to UNIX endings... stupid XP. Also, made calculations more precise and removed line endings.