added first variables, methods

Added initial variables for stream handling. Added Initialize method to initialize program. Added first comments.