Version 1.0

Added main functions and helper functions.