fixing error bug in get-profile, fixing some code formatting issues, fixing docstring bug in defafun