#29, #30 

Merged recent master branch, and resolved conflicts. 
Please ignore #90 and close.