Almost there.

Added some files and almost finished functions stuff.