Initial commit

Functions defined and working; comments added