Fixed nested tab bugs and added sample file