First attempt to update the library correctly.
 * Now only clean remove files. Before pragha not do it.
Rename some functions.