Organized Code

Functions are now arranged alphabetically.