v0.1.2, Bug/getter

@imlucas 
Fixed bug #34 . The bug was caused by my naive attempt to simplify code.