Fixed the big bug. Silly 'ol me forgot floating point operations were not initialized. For now I am not initializing them, and integer division was used instead.