Cleanup
Further cleanup

Added initial API doc
Removed serial functions