Reordered code. Added development instructions.