Add sinastock and refactor logging module