fixed compilation errors and added block comment to unfinished functions