Fixed dialyzer type warnings,
added file and namespace api.