Finished basic functions, starting scope

Finished basic functions, starting scope