Finished summary function coding

Added doc skeleton and made it compilable