Add Some Fixes on Mathematics And Fix An Error.

Signed-off-by: Sakretsos <ioannis@tavernarakis.eu>