Bug/getter

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