Fixed some setup issues

Fixed some issues, started implementing some structs for testing
namespace resolving etc.