config revamped. Maven and profiles working.