This cleans up and makes value setting the same
for parameters and property.
Make function private.
Merge pull request #8 from lagoa/mrafsan/chore/lapi_cleanup

lapi cleanup.