cleaned up source code style
added util::spinlock