Refined datatypes

- Cleaning data afterwards
- Use std::malloc instead of malloc (idk, portability or something)