Fix bugs on .hrl and set timeout on init spike_agent