First real commit. Adds all existing code.