Adding specs and fixing typo in source