Code cleanup, modification, and refinement!

I also merged peterwald's "r02" and edited and merged it alongside the current RazorDB version and my changes! Hope it helps! :palm_tree: