Earnings (loss) per share (Details Textual) - shares |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount | 0 | 35 | 0 |
| Stock Option [Member] | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount | 6,830 | ||
| Warrant [Member] | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | |||
| Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount | 14,642 | ||