added pid file extraction on init
moved to pure json, added config file path
added create pid file.