more functions and comments

the comments are pretty useless right now...