Adding renderSync function, updating tests and docs