sync: implement sync objects
buffer: improve exception handling and usage
gitignore: ignore Valgrind output files