Comments, clean up, added dense implementation-not working yet