Mvp 1524

Change all function parameters to separate parameters instead of dict
fix validation function so it validates the parameters
improve docstrings