Functions and Boolean Logic Commit

Added functions and boolean logic.