adding -spec to yags.erl and yags_config.erl