Resolved issues #2, #4, #20, #23, and #27.