Add conditional statements, README.md and LICENSE