Added some core utilities, started working on support for polygon rendering