fixed bug in unicode characters
add boolean switch to just process one page