Fixed missing constness in methods, closes #12