fixes for check function
Merge pull request #3 from ericraio/fix_check_function

fixes for check function - removed duplicated closing tags