Bugfix #105 and #265 + bugfix with opening bibliography.

__Code Review:__
http://mrccodereview.cloudapp.net/ui#review:id=1124