| Schedule of quarterly results | 
Unaudited Quarterly Results of Operations  
(in thousands, except share and per share amounts)  
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
   | 
Three months ended  | 
   | 
   | 
 
   | 
   | 
March 31, 2018  | 
   | 
June 30, 2018  | 
   | 
September 30, 2018  | 
   | 
December 31, 2018  | 
   | 
Total for year 2018  | 
 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Revenue - sales  | 
   | 
$  | 
1,726  | 
 
  | 
   | 
$  | 
483  | 
 
  | 
   | 
$  | 
1,169  | 
 
  | 
   | 
$  | 
1,071  | 
 
  | 
   | 
$  | 
4,449  | 
 
  | 
 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Operating expenses  | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Cost of product sales  | 
   | 
5,436  | 
 
  | 
   | 
4,600  | 
 
  | 
   | 
6,453  | 
 
  | 
   | 
6,272  | 
 
  | 
   | 
22,761  | 
 
  | 
 
Research and development cost  | 
   | 
1,475  | 
 
  | 
   | 
1,203  | 
 
  | 
   | 
967  | 
 
  | 
   | 
857  | 
 
  | 
   | 
4,502  | 
 
  | 
 
General and administrative expense  | 
   | 
1,775  | 
 
  | 
   | 
3,913  | 
 
  | 
   | 
2,174  | 
 
  | 
   | 
6,352  | 
 
  | 
   | 
14,214  | 
 
  | 
 
Total operating expenses  | 
   | 
8,686  | 
 
  | 
 
  | 
9,716  | 
 
  | 
 
  | 
9,594  | 
 
  | 
 
  | 
13,481  | 
 
  | 
 
  | 
41,477  | 
 
  | 
 
Loss from operations  | 
   | 
(6,960  | 
)  | 
 
  | 
(9,233  | 
)  | 
 
  | 
(8,425  | 
)  | 
 
  | 
(12,410  | 
)  | 
 
  | 
(37,028  | 
)  | 
 
Other income and expense  | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Interest expense  | 
   | 
(587  | 
)  | 
   | 
(719  | 
)  | 
   | 
(919  | 
)  | 
   | 
(1,222  | 
)  | 
   | 
(3,447  | 
)  | 
 
Interest and other income  | 
   | 
17  | 
 
  | 
   | 
25  | 
 
  | 
   | 
81  | 
 
  | 
   | 
100  | 
 
  | 
   | 
223  | 
 
  | 
 
Total other expense, net  | 
   | 
(570  | 
)  | 
 
  | 
(694  | 
)  | 
 
  | 
(838  | 
)  | 
 
  | 
(1,122  | 
)  | 
 
  | 
(3,224  | 
)  | 
 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Loss before income tax expense  | 
   | 
(7,530  | 
)  | 
   | 
(9,927  | 
)  | 
   | 
(9,263  | 
)  | 
   | 
(13,532  | 
)  | 
   | 
(40,252  | 
)  | 
 
Income tax expense  | 
   | 
(2  | 
)  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
(2  | 
)  | 
 
Net loss  | 
   | 
(7,532  | 
)  | 
 
  | 
(9,927  | 
)  | 
 
  | 
(9,263  | 
)  | 
 
  | 
(13,532  | 
)  | 
 
  | 
(40,254  | 
)  | 
 
Weighted average shares outstanding, basic and diluted  | 
   | 
27,768,008  | 
 
  | 
   | 
30,134,995  | 
 
  | 
   | 
38,779,710  | 
 
  | 
   | 
38,905,282  | 
 
  | 
   | 
34,154,826  | 
 
  | 
 
Basic and diluted net loss per share  | 
   | 
$  | 
(0.27  | 
)  | 
 
  | 
$  | 
(0.33  | 
)  | 
 
  | 
$  | 
(0.24  | 
)  | 
 
  | 
$  | 
(0.35  | 
)  | 
 
  | 
$  | 
(1.18  | 
)  | 
 
  
  
 |  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
   | 
   | 
Three months ended  | 
   | 
   | 
 
   | 
   | 
March 31, 2017  | 
   | 
June 30, 2017  | 
   | 
September 30, 2017  | 
   | 
December 31, 2017  | 
   | 
Total for year 2017  | 
 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Revenue - sales  | 
   | 
—  | 
 
  | 
   | 
603  | 
 
  | 
   | 
589  | 
 
  | 
   | 
896  | 
 
  | 
   | 
2,088  | 
 
  | 
 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Operating expenses  | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Cost of product sales  | 
   | 
—  | 
 
  | 
   | 
2,531  | 
 
  | 
   | 
3,140  | 
 
  | 
   | 
3,870  | 
 
  | 
   | 
9,541  | 
 
  | 
 
Research and development cost  | 
   | 
2,987  | 
 
  | 
   | 
2,184  | 
 
  | 
   | 
1,367  | 
 
  | 
   | 
1,565  | 
 
  | 
   | 
8,103  | 
 
  | 
 
General and administrative expense  | 
   | 
1,528  | 
 
  | 
   | 
1,444  | 
 
  | 
   | 
1,925  | 
 
  | 
   | 
1,994  | 
 
  | 
   | 
6,891  | 
 
  | 
 
Impairment charge  | 
   | 
   | 
   | 
2,411  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
2,411  | 
 
  | 
 
Total operating expenses  | 
   | 
4,515  | 
 
  | 
 
  | 
8,570  | 
 
  | 
 
  | 
6,432  | 
 
  | 
 
  | 
7,429  | 
 
  | 
 
  | 
26,946  | 
 
  | 
 
Loss from operations  | 
   | 
(4,515  | 
)  | 
   | 
(7,967  | 
)  | 
   | 
(5,843  | 
)  | 
   | 
(6,533  | 
)  | 
   | 
(24,858  | 
)  | 
 
Other income and expense  | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Interest expense  | 
   | 
(388  | 
)  | 
   | 
(408  | 
)  | 
   | 
(454  | 
)  | 
   | 
(511  | 
)  | 
   | 
(1,761  | 
)  | 
 
Interest and other income  | 
   | 
11  | 
 
  | 
   | 
10  | 
 
  | 
   | 
7  | 
 
  | 
   | 
13  | 
 
  | 
   | 
41  | 
 
  | 
 
Total other expense, net  | 
   | 
(377  | 
)  | 
 
  | 
(398  | 
)  | 
 
  | 
(447  | 
)  | 
 
  | 
(498  | 
)  | 
 
  | 
(1,720  | 
)  | 
 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
   | 
 
Loss before income tax expense  | 
   | 
(4,892  | 
)  | 
   | 
(8,365  | 
)  | 
   | 
(6,290  | 
)  | 
   | 
(7,031  | 
)  | 
   | 
(26,578  | 
)  | 
 
Income tax expense  | 
   | 
(2  | 
)  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
—  | 
 
  | 
   | 
(2  | 
)  | 
 
Net loss  | 
   | 
(4,894  | 
)  | 
 
  | 
(8,365  | 
)  | 
 
  | 
(6,290  | 
)  | 
 
  | 
(7,031  | 
)  | 
 
  | 
(26,580  | 
)  | 
 
Weighted average shares outstanding, basic and diluted  | 
   | 
18,792,850  | 
 
  | 
   | 
20,123,041  | 
 
  | 
   | 
20,265,020  | 
 
  | 
   | 
21,956,993  | 
 
  | 
   | 
20,293,100  | 
 
  | 
 
Basic and diluted net loss per share  | 
   | 
(0.26  | 
)  | 
 
  | 
(0.42  | 
)  | 
 
  | 
(0.31  | 
)  | 
 
  | 
(0.32  | 
)  | 
 
  | 
(1.31  | 
)  | 
 
  
 
 
 
 |