Added planetarium prototype

More bugfixes and code improvements as well.