Libraries structure cleaned and fixed. Printf substituted with cout (when it was possible)