Fixing wrong parameters types and documentation