Cleaned up code, got functional ghost serve