Refactored rasterizer and revamped documentation